﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iss.sg4210.se18.team6s.jass.DAL.DataAccess.Interfaces;

namespace iss.sg4210.se18.team6s.jass.BL
{
    public class SearchFacade
    {
        ISearch searchRepo = null;

        public SearchFacade()
        {
            searchRepo = DataAccessFactory.Instance.Search;
        }

        public IQueryable<DAL.Advertisement> GetAllSearchResults()
        {
            return searchRepo.GetAllSearchResults();
        }

        public IQueryable<DAL.Advertisement> GetSearchResults(DAL.DataAccess.MetaData.SearchModel searchModel)
        {
            return searchRepo.GetSearchResults(searchModel);
        }
    }
}
